package com.dongnao.jack.service.store;

import java.util.HashMap;
import java.util.Map;

public class ParseServiceFactory {

    private static Map<String, ParseService> parseMap = new HashMap<>();

    static {
        parseMap.put("redis", new RedisParseService());
        parseMap.put("zookeeper", new ZookeeperParseService());
    }

    public static ParseService getParseService(String type) {

        return parseMap.get(type);

    }

}
